New South Wales Attorney General Mark Speakman believes it is "immoral to abort a baby" based on gender but says he can't personally safeguard this.